package com.bh.fee.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Dict;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 其他费用登记对象 jc_other_cost
 * 
 * @author slx
 * @date 2023-07-02
 */
@TableName("jc_other_cost")
@ApiModel(value = "其他费用登记对象", description = "其他费用登记对象")
@EqualsAndHashCode(callSuper = true)
@Data
public class JcOtherCost extends BaseEntity
{
    

    /** ID */
    private Long id;

    private String createName;

    private String name;

    private Integer status;

    /** 费用类型 */
    @ApiModelProperty("费用类型")
    @Excel(name = "费用类型")
    private Long otherFeeType;

    /** 税率 */
    @ApiModelProperty("税率")
    @Excel(name = "税率")
    private BigDecimal taxRate;

    /** 组织ID */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    @ApiModelProperty("组织ID")
    @Excel(name = "组织ID")
    private Long jcOrganizationId;

    /** 方单价 */
    @ApiModelProperty("方单价")
    @Excel(name = "方单价")
    private BigDecimal volumePrice;

    /** 吨单价 */
    @ApiModelProperty("吨单价")
    @Excel(name = "吨单价")
    private BigDecimal weightPrice;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("name", getName())
            .append("status", getStatus())
            .append("otherFeeType", getOtherFeeType())
            .append("taxRate", getTaxRate())
            .append("jcOrganizationId", getJcOrganizationId())
            .append("volumePrice", getVolumePrice())
            .append("weightPrice", getWeightPrice())
            .toString();
    }
}
